﻿using System;

namespace Validate.Net
{
    /// <summary>
    /// 标记字段或属性的描述信息
    /// </summary>
    [AttributeUsage(AttributeTargets.Property|AttributeTargets.Field,AllowMultiple =false,Inherited = true)]
    public class DescribeAttribute : Attribute
    {
        /// <summary>
        /// 公有取值，私有赋值
        /// </summary>
        public string describe { get; private set; }

        /// <summary>
        /// 特性构造函数，为特性描述赋值
        /// </summary>
        /// <param name="columnName"></param>
        public DescribeAttribute(string columnName)
        {
            this.describe = columnName;
        }
    }
}
